package com.practice.utils;

/**
 * 常量
 */
public class Constant {

    /*=================状态====================*/

    public static final String RES_SUCCESS="调用成功";

    /*=================验证码====================*/
    //验证码位数
    public static final int CODE_NUMBER=4;

    //验证码有效时间300S
    public static final int CODE_EXPIRE_SECOND=300;

    public static final String CODE_VERIFY_SUCCESS="验证码正确";

    public static final String CODE_VERIFY_FAIL="验证码错误";

    //验证码异常
    public static final String CODE_ERROR_ONE="验证码使用中";

    public static final String CODE_ERROR_TWO="验证码不能为空";


    /*===================手机号码======================*/


    public static final String PHONE_ERROR_ONE="手机号不能为空";

    public static final String PHONE_ERROR_TWO="手机号码非法";

    public static final String PHONE_ERROR_THREE="手机号已注册";

    public static final String PHONE_ERROR_FOUR="手机号区域编码不能为空";

    public static final String AREA_MACAO="2";

    public static final String AREA_MACAO_PREV="853";

    public static final String AREA_HK="3";

    public static final String AREA_HK_PREV="852";

    /*===================短信======================*/
    //聚合数据短信URL
    public static final String SMS_JUHE_URL="http://v.juhe.cn/sms/send";
    //调用接口需要的AppKey
    public static final String SMS_JUHE_KEY="436f69fc7f22f81293efb4a6b3622330";
    //调用接口需要的短信模板
    public static final String SMS_JUHE_TEMPLATE="106353";

    //澳门电讯短信URL
    public static final String SMS_MC_URL="http://202.175.4.180:20081/servlet/SendSMS";
    //澳门电讯需要的用户名
    public static final String SMS_MC_USERNAME="MwaTer";
    //澳门电讯需要的密码
    public static final String SMS_MC_PWD="MwTer16";
    //澳门电讯的发件方
    public static final String SMS_MC_FROM="85366017377";
    //【智慧水務】您的验证码是#code#。如非本人操作，请忽略本短信
    public static final String SMS_MC_TEMPLATE_ONE="【智慧水務】您的验证码是";

    public static final String SMS_MC_TEMPLATE_TWO="如非本人操作，请忽略本短信。";


    /*===================注册/登录======================*/

    public static final String SIGNUP_ADDRESS_NULL="订阅区域不能为空";

    public static final  String ACCOUNT_AUTHEN_FAIL="账户验证失败!";

    public static final String ACCOUNT_NULL="账户不存在!";

    public static final String SIGNIN_SUCCESS="登录成功!";

    public static final String SIGNUP_SUCCESS="注册成功!";

    public static final String SIGNUP_EMAIL_NULL="邮箱为空!";

    public static final String ACTIVE_EMAIL_NULL="请先激活邮箱！";

    public static final String SIGNUP_PWD_NULL="密码为空!";

    public static final String ACCOUNT_NOT_EXISTS="账户不存在！";

    /*===================微信======================*/

//    public static final String WX_APP_ID="wxb364df0830b4a7dd";
    public static final String WX_APP_ID="wx745469f34326f4df";

//    public static final String WX_APP_SECRET="6d5030953fdf39c3d13e583b24b37e3a";//澳门水务
    public static final String WX_APP_SECRET="93f0c80a84e73d09e1d92626d6dac6be";//查森互动公众号

//    public static final String WX_CODE_REDIRECT_URI="http://j16873m353.iask.in/api/v1/wxfb";

    public static final String WX_CODE_REDIRECT_URI="http://macaowatertest2.wechattips.com/api/v1/wxfb";

    public static final String WX_AUTH_CODE="https://open.weixin.qq.com/connect/oauth2/authorize";

    public static final String WX_AUTH_TOKEN="https://api.weixin.qq.com/sns/oauth2/access_token";

    public static final String WX_REFRESH_TOKEN="https://api.weixin.qq.com/sns/oauth2/refresh_token";

    public static final String WX_USER_INFO="https://api.weixin.qq.com/sns/userinfo";

    public static final String WX_SUBSCRIBE="https://api.weixin.qq.com/cgi-bin/user/info";

    public static final String WX_ACCESS_TOKEN = "https://api.weixin.qq.com/cgi-bin/token";

    public static final String OPEN_ID_NULL="openId不能为空";

//    public static final String BASE_HTML_REDIRECT_URI="http://j16873m353.iask.in/index.html";

    public static final String BASE_HTML_REDIRECT_URI="http://macaowatertest2.wechattips.com/index.html";

//    public static final String USERINFO_HTML_REDIRECT_URI="http://j16873m353.iask.in/#/user/register-phone";

    public static final String USERINFO_REGISTER_REDIRECT_URI="http://macaowatertest2.wechattips.com/#/user/register-phone";

    public static final String USERINFO_BIND_REDIRECT_URI="http://macaowatertest2.wechattips.com/#/user/register-email";

    //refresh_token有效期为30天，当refresh_token失效之后
    public static final int REFRESH_TOKEN_EXPIRED=30;

    public static final String REGISTER_FB="register";

    public static final String BIND_FB="bind";

    /*===================通用======================*/
    public static final String HTTP_GET="GET";

    public static final String HTTP_POST="POST";

    public static final String OBJ_ERROR_ONE="对象不能为null";

    public static final int SESSION_EXPIRED_CODE=503;

    public static final int SUCC_CODE=200;

    public static final int ERROR_CODE=500;

    public static final String ERROR_MSG="未知异常，请联系管理员";

    public static final String SESSION_EXPIRED_MSG="会话失效，请重新登录";

    public static final String TOKEN_NOT_NULL="token不能为空";

    public static final int V20=20;

    public static final int V25=25;


    /*===================数据底座======================*/

    public static final String ORDER_ID_NULL="合同ID为null";

    public static final String MEMBER_ID_NULL="会员ID不能为空";

    public static final String USER_ID_NULL="用户ID不能为空";

    public static final String ID_TYPE_NOT_NULL="证件类型不能为空";

    public static final String MEMBER_BIND_ERROR="member bind error!";

    public static final String MEMBER_SIGNUP="/echannel/api/wechat/member/reg";

    public static final String MEMBER_VIEW="/echannel/api/wechat/member/view";

    public static final String MEMBER_CARD_BIND="/echannel/api/wechat/member/id/bind";

    public static final String MEMBER_UNBIND="/echannel/api/wechat/member/unbind";

    public static final String MEMBER_BIND="/echannel/api/wechat/member/bind";

    public static final String MEMBER_UPDATE="/echannel/api/wechat/member/upd";

    public static final String MEMBER_CHECK_EXISTS="/echannel/api/wechat/member/checkexists";

    //自动登录
    public static final String MEMBER_AUTO_LOGIN="/website-api/page/icis/account/wechat/login";

    public static final String ORDER_WX_UNBIND_FLAG="N";

    public static final String ORDER_WX_BIND_FLAG="Y";

    //账号编号，默认1
    public static final int ORDER_ACCTNB=1;

    public static final String ORDER_REMIND_BILL="101";

    public static final String ORDER_REMIND_USER_STATUS="102";
    public static final String ORDER_REMIND_USER_BILL="103";

    public static final String ORDER_BILL="/echannel/api/wechat/bill/view";

    public static final String ORDER_BILL_PAY="/echannel/api/wechat/payment/bill/view";

    public static final String ORDER_BILL_COMMIT="/echannel/api/wechat/payment/commit";

    public static final String ORDER_BILL_DOWNLOAD="/echannel/api/wechat/bill/pdf/get_by_bodynb";

    public static final String ORDER_BILL_QRCODE="/echannel/api/wechat/bill/qrcode/get_by_bodynb";

    public static final String ORDER_BILL_DOWNLOAD_TRANSNB="/echannel/api/wechat/bill/pdf/adv/get_by_bodynb_transcnb";

    public static final String ORDER_BILL_HISTORY="/echannel/api/wechat/bill/history/list";

    //  查询ebill申请状态
    public static final String ORDER_BILL_CHECK="/echannel/api/wechat/ebill/check";

    public static final String ORDER_BILL_COMMIT_FB_HTML="http://macaowatertest2.wechattips.com/index.html";

    public static final String ORDER_BIND="/echannel/api/wechat/member/bodylink/add";

    public static final String ORDER_BATCH_DEL="/echannel/api/wechat/member/bodylink/del";

    public static final String ORDER_WX_BIND="/echannel/api/wechat/ebill/reg";

    public static final String ORDER_WX_UNBIND="/echannel/api/wechat/ebill/cancel";


    public static final Integer OPERATE_WX_BIND=1;

    public static final Integer OPERATE_WX_UNBIND=0;

    public static final String DAY_WATER_ANALYSIS="/echannel/api/wechat/info/waterquality";

    public static final String DATA_BASE_URL="https://apitest.macaowater.com";

    public static final String DATA_BASE_TOKEN="CA915FC66B39417883ECA1C66BCD27F3";

    public static final String DATA_BASE_HOST="apitest.macaowater.com";

    public static final String DATA_BASE_HOST_PWD="changeit";

    public static final String DATA_BASE_SUCCESS_CODE="0";


    public static String SSL_CERT_PASSWORD="apitest2048pwd";//证书的秘钥
    //小熊服务器地址项目地址
    public static final String DATA_BASE_URL_SANBOX_SW="http://macaowatertest2.wechattips.com";
    // 支付通知接口
    public static final String PAYRESULT="/api/v1/payResult";

    /*===================积分管理======================*/

    //进行签到,签到成功，积分加5
    public static final int CHECK_IN_SCORE=5;
    //首页未签到
    public static final int CHECK_IN_UNDONE=0;
    //首页已签到
    public static final int CHECK_IN_DONE=1;
    // 签到总次数
    public static final int RIGNIN_COUNT=1;

    public static final int CHECK_IN_SUCCESS=1;
    // 商品未领取
    public static final int SCORE_ORDER_STATE_NO=1;
    // 商品已领取
    public static final int SCORE_ORDER_STATE_YES=2;
    // 商品已失效
    public static final int SCORE_ORDER_STATE_FAIL=3;
    // 推荐好友注册
    public static final String DOTASK_TUIJIAN="tuijian";
    // 注册会员
    public static final String DOTASK_REGISTER="register";
    // 首次绑定合同
    public static final String DOTASK_FIRST_CONTRACT="contract";
    // 阶段 未完成
    public static final int LEVEL_TODO=0;
    // 阶段 领积分
    public static final int LEVEL_GETSCORE=1;
    // 阶段 已完成
    public static final int LEVEL_HAVEDONE=2;
    // 每日签到
    public static final String SCOREENUM_QD = "QD";
    //首次绑定合同号
    public static final String SCOREENUM_SCBD = "SCBD";
    // 注册会员
    public static final String SCOREENUM_ZCHY = "ZCHY";
    // 推荐好友注册
    public static final String SCOREENUM_TJHY = "TJHY";
    // 任务类型不为空
    public static final String TASK_TYPE = "任务类型不能为空";
    // 任务状态不能为空
    public static final String TASK_LEVEL = "任务状态不能为空";
    // 核销方式 核销码
    public static final int WRITE_OFF_TYPE_A=0;
    // 核销方式 核销码+条形码
    public static final int WRITE_OFF_TYPE_B=1;
    // 核销方式 联系方式
    public static final int WRITE_OFF_TYPE_C=2;
    // 5.1.1 取得有AMI的合同编号
    public static final String AMI_BODYNBLIST = "/sites/wechat/ami/bodyNbList";
    // 5.1.2 取得总览页资料
    public static final String AMI_DASHBOARD = "/sites/wechat/ami/dashboard";
    // 5.1.3 取得某天和前 14天用水量
    public static final String AMI_ACTIVITIES = "/sites/wechat/ami/activities";
    // 5.1.4 取得订阅方式
    public static final String AMI_REGLIST = "/sites/wechat/ami/regList";
    // 5.1.5 订阅通知
    public static final String AMI_REG = "/sites/wechat/ami/reg";
    // 5.1.6 取消订阅通知
    public static final String AMI_CANCEL = "/sites/wechat/ami/cancel";
    // 5.1.7 邮件订阅激活
    public static final String AMI_ACTIVEAPPLY = "/sites/wechat/ami/activeApply";
    // 5.1.8 取得已发送的通知列表
    public static final String AMI_ALARMHISTORY = "/sites/wechat/ami/alarmHistoryList";
    // 5.1.9 取得有Tips列表
    public static final String AMI_TIPS = "/sites/wechat/ami/tipsList";
    // 5.1.10 查询Ami申请状态
    public static final String AMI_CHECK = "/sites/wechat/ami/check";


    /*===================微信通知======================*/
    public static final String WX_TEMPLATE_ID_1 = "bt0Z0IgPzhQAsS6EiXftoq-9IcIz890pUnVV1arT0-4";
    public static final String WX_TEMPLATE_ID_2 = "0CUN9MfVdutVJngUOU0-gUKtDePooZZZ-bHM1fwsZys";
    public static final String WX_TEMPLATE_ID_3 = "HJBVDPRvX6GY4pK4lzHhsTpzw4Sw_dlPNxXZG0vlER8";
    public static final String WX_TEMPLATE_ID_4 = "YM-4Q6Gs1stfzuF1m-JXKciaV3_3Yy1kgLRnbVn-YCM";
    public static final String WX_TEMPLATE_ID_5 = "BSx_lcgXQ8Lw3Bwtl-Tt_eInbfl7DbkDZ14aF3C65Yw";
    public static final String WX_TEMPLATE_ID_6 = "RSlgI-RgsyEsbpp8WSi7qu2R0soH0v2YvXs-BtfcbMI";
    public static final String WX_TEMPLATE_ID_7 = "P0sAUz4MKALGQ6bXpv0KPD4PqnPjHRDa-xFD0icKLao";
    public static final String WX_TEMPLATE_ID_8 = "hGeRfk81LgzAvDhz4b77od0bTF1aQkjRN9Q9CN2MT-E";
    public static final String WX_TEMPLATE_ID_9 = "krRB63QhrtCpyPUaJK8Pp4JSuwTrb_KUIW2qavMYQcE";
    public static final String WX_SEND_MESSAGE_URL ="https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";


    /*===================本地环境======================*/

//    public static String SSL_CERT_PATH="E:\\code\\macao-water-system\\ca.p12";//证书的路径

    /*===================线上测试环境======================*/



    public static String SSL_CERT_PATH="/home/water_system/ca.p12";//证书的路径2

    // 自动跳转
    public static final String AUTOJUMP_KEY = "123MW678876WM321";

    public static final String AUTOJUMP_URL = "http://202.175.81.20/website-api/page/icis/account/wechat/login?token="; // 测试环境




    /*===================生产环境======================*/

//    public static final String AUTOJUMP_URL = "https://api.macaowater.com/website-api/page/icis/account/wechat/login?token="; // 生产环境

}
